 <%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/taglibs.jsp"%>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
	content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="${ctx}/resources/semanticui/semantic.min.css"
	rel="stylesheet" type="text/css" />
<link href="${ctx}/resources/apps.css" rel="stylesheet" type="text/css" />
<title>订单详情</title>
</head>
<body>
<div class="ui segment" id="status_text">
<div style="color: green;"> <i class="check circle icon" style="font-size:3em;"></i></div>&nbsp;<br>
感谢您已修改简历，候选人可下载。&nbsp;<br>&nbsp;<br>
<div class="ui placeholder segment">
  <div class="ui icon header">
    <i class="pdf file outline icon"></i>
    ${resume}
  </div>
   <c:choose>
  	<c:when test="${fn:contains(resume,'pdf')==true}">
  	     <input type="hidden" value="${resume}" id="filepdf" >
  		 <a target="_blank" href="${ctx}/views/wechat/candidate/order/report.jsp?url=${resume}"><div class="ui primary button" >预览简历</div></a>
  	</c:when>
 		<c:when test="${fn:contains(resume,'docx')==true}">
 			 <a target="_blank" href="https://tiaonali.com/${resume.substring(0,resume.lastIndexOf('.'))}.html"><div class="ui primary button">预览简历</div></a>
 		</c:when>
 		<c:otherwise>
 			<a target="_blank" href="https://tiaonali.com/${resume}"><div class="ui primary button">预览简历</div></a>
 		</c:otherwise>
  </c:choose>
</div>
</div>
    

	<script src="${ctx}/resources/jweixin-1.0.0.js"></script>

	<script src="${ctx}/resources/semanticui/jquery-2.1.4.min.js"></script>
	<script src="${ctx}/resources/semanticui/semantic.js"
		type="text/javascript"></script>
	<script type="text/javascript">
/* 
wx.config({
    debug: false, 
    appId: "${config.appid}",  
    timestamp: ${config.currenttimestamp},  
    nonceStr: "${config.nonceStr}", 
    signature: "${config.signatureStr}", 
    jsApiList: ['checkJsApi',
        'onMenuShareTimeline',
        'onMenuShareAppMessage',
        'onMenuShareQQ',
        'onMenuShareWeibo',
        'showOptionMenu',
        'closeWindow']  
}); */

        var handler = {
            activate : function() {
                $(this).addClass('active').siblings().removeClass('active');

                if($(this).attr('id') == 'closeit') {
                    wx.closeWindow();
                }

                if ($(this).attr('id') == 'next') {
                    var hrid = $('#hrid').val();
                    var companyid = $('#companyid').val();
                    var getUrl = '${ctx}/wechat/employer/toEdit.page';
                    getUrl += '?hrId=' + hrid;
                    //getUrl += '&companyId=' + companyid;
                    
                    $(this).addClass('disabled');

                    location.href = getUrl;
                }
            }
        };

        $(document).ready(function() {
          
                $('.button').on('click', handler.activate);
                wx.ready(function() {   
                wx.onMenuShareAppMessage({
                    title: 'Headoffer--专业招聘平台----推荐有奖！',  
                    desc: '搭起企业和专业猎头的桥梁，为企业招募英才。',  
                    link: 'http://www.tiaonali.com${ctx}/wechat/hunter/shareservice.page',  
                    imgUrl: 'http://www.tiaonali.com${ctx}/resources/images/sharelogo.jpg',  
                    type: 'link'
                });

                wx.onMenuShareTimeline({
                    title: 'Headoffer--专业招聘平台----推荐有奖！',  
                    desc: '搭起企业和专业猎头的桥梁，为企业招募英才。',  
                    link: 'http://www.tiaonali.com${ctx}/wechat/hunter/shareservice.page',  
                    imgUrl: 'http://www.tiaonali.com${ctx}/resources/images/sharelogo.jpg'
                });

                wx.showOptionMenu();
            });
        });
    </script>
</body>
</html>